package com.design.yjx.decorator.io;

import java.io.FileInputStream;
import java.io.IOException;

/**
 * @author yuanjianxin
 * @date 2017/8/3 14:14
 */
public class IoMainTest {

    public static void main(String[] args) throws Exception{
        int c = 0;
        try {
        LowerInputStream in = new LowerInputStream(new FileInputStream("src/test.txt"));

            while((c = in.read()) >= 0) {
                System.out.print((char)c);
            }
            in.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
